package cn.bluech.template.reflect;


import cn.bluech.template.reflect.hide.IPrivate;

/**
 * Description:
 * Create by Codeant on 2019/1/29.
 */
public class ReflexExample {

    public static void callPrivateFun(){
        IPrivate example = null;
        try {
            example = (IPrivate)MyProxy.newInstance();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
            return;
        }


        // 在接口执行的时候就会去调invoke 方法
        example.interface1();
        example.interface2(10);
    }

}
